<template>
  <div class="">
    <el-row :gutter="20">
      <el-col :span="6">
        <div class="">
          <p>我的余额</p>
          <p>{{balance}}</p>
        </div>
      </el-col>
      <el-col :span="6">
        <div>
          <p>我的余额</p>
          <p>{{appNum}}</p>
        </div>
      </el-col>
      <el-col :span="6">
        <div>
          <p>运营中小程序</p>
          <p>{{operatingNum}}</p>
        </div>
      </el-col>
      <el-col :span="6">
        <div>
          <p>已过期小程序</p>
          <p>{{staleNum}}</p>
        </div>
      </el-col>
    </el-row>
    <el-row :gutter="20">
      <el-col :span="12">
        <h4>最近充值</h4>
        <el-table :data="topUpList" stripe border style="width: 100%">
          <el-table-column
            prop="date"
            label="充值时间"
            >
          </el-table-column>
          <el-table-column
            prop="num"
            label="充值金额"
           >
          </el-table-column>
          <el-table-column
            prop="desc"
            label="充值详情">
          </el-table-column>
        </el-table>
      </el-col>
      <el-col :span="12">
        <h4>最近消费</h4>
        <el-table :data="consumeList" stripe border style="width: 100%">
          <el-table-column
            prop="date"
            label="消费时间"
            >
          </el-table-column>
          <el-table-column
            prop="num"
            label="消费金额"
            >
          </el-table-column>
          <el-table-column
            prop="desc"
            label="消费详情">
          </el-table-column>
        </el-table>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data () {
    return {
      balance: 0.00,
      appNum: 26,
      operatingNum: 0,
      staleNum: 6,
      topUpList: [
        {
          date: '2018-02-09 13:14:50',
          num: 0.00,
          desc: '上级充值'
        }
      ],
      consumeList: [
        {
          date: '2018-02-09 13:14:50',
          num: 0.00,
          desc: 'testtet'
        }
      ]
    }
  },
  methods: {
    // 获取数据列表
  }
}
</script>
